﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

/// <summary>
/// string类的扩展方法类
/// </summary>
public static class stringExtensions
{
    /// <summary>
    /// 指示指定的字符串是 null 还是 System.String.Empty 字符串
    /// </summary>
    /// <param name="source">要测试的字符串</param>
    /// <returns>如果 source 参数为 null 或空字符串 ("")，则为 true；否则为 false</returns>
    public static bool IsNullOrEmpty(this string source)
    {
        return string.IsNullOrEmpty(source);
    }
}
